from django.shortcuts import render

# Create your views here.

def index(request):
    return  render(request,'drf21_03/demo2.html')

def index2(request):
    data = {
        "user_data": [
            {
                'username': 'GUXUAN',
                'age': '23',
                'sex': 1,
            },
            {
                'username': '顾轩2',
                'age': '24',
                'sex': 1,
            },
            {
                'username': '顾轩3',
                'age': '25',
                'sex': 1
            },
            {
                'username': '顾轩4',
                'age': '26',
                'sex': 0,
            },
        ]

    }
    return  render(request,'drf21_03/demo4.html',context=data)

